package com.sxt.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.sxt.sys.domain.Hotel;
import com.sxt.sys.mapper.HotelMapper;
import com.sxt.sys.service.HotelService;
import com.sxt.sys.utils.DataGridView;
import com.sxt.sys.vo.HotelVo;
@Service
public class HotelServiceImpl implements HotelService {
    @Autowired
	private HotelMapper hotelMapper;
	@Override
	public List<Hotel> queryAllHotelForList() {
		// TODO Auto-generated method stub
		return hotelMapper.queryAllHotel();
	}

/*	@Override
	public DataGridView queryAllHotel(HotelVo hotelVo) {
		Page<Object> page = PageHelper.startPage(hotelVo.getPage(),hotelVo.getLimit());
		List<Hotel> data=hotelMapper.queryAllHotel(hotelVo);
		return new DataGridView(page.getTotal(),data);
	}*/

	
 /* //添加
	@Override
	public void addNewHotel(HotelVo hotelVo) {
		// TODO Auto-generated method stub
		this.hotelMapper.insertSelective(hotelVo);
	}
 */

	/*@Override
	public void deleteHotel(Integer id) {
		// TODO Auto-generated method stub
		 this.hotelMapper.deleteByPrimaryKey(id);
	}*/

}
